#ifndef RC4_H
#define RC4_H
#include <iostream>
#include <vector>

class Rc4
{
public:
    Rc4(std::string);
    void encrypt(const std::string ,const std::string);
private:
    unsigned char S[256];
    unsigned char T[256];
    int keylen;
    std::string key;
    std::vector<unsigned char> fullkey;

    void initial();
    void ksa();
    void prga(int len);
};

#endif // RC4_H
